package com.ocom.common.vo.access;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class TimeInfoVo implements Serializable {
    private static final long serialVersionUID = 2102951265839038293L;

    @JsonProperty("companyID")
    private Long companyID;

    @JsonProperty("comId")
    private Long comId;

    @NotEmpty(message = "区域编号不能为空")
    @JsonProperty("areaNo")
    private String areaNo;

    @NotNull(message = "权限组编号不能为空")
    @JsonProperty("groupNo")
    private Long groupNo;

    @NotNull(message = "时区编号不能为空")
    @JsonProperty("zoneNo")
    private Integer zoneNo;

    @JsonProperty("timeSlots")
    private JSONArray timeSlots;
}
